#pragma once

#include <iostream>
#include <string>
#include <time.h>


std::string Time()
{
    time_t timestamp = time(NULL);
    struct tm* time = ::localtime(&timestamp);

    char timecon[32];
    snprintf(timecon,sizeof(timecon),"%d-%d-%d %d:%d:%d",
    time->tm_year+1900,
    time->tm_mon+1,
    time->tm_yday,
    time->tm_hour,
    time->tm_min,
    time->tm_sec
    );
    return timecon;
}